package com.moon.cloud.log.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Moon Cloud Log 配置属性类
 * 
 * @author Moon Cloud
 */
@ConfigurationProperties(prefix = "moon.cloud.log")
public class LogProperties {

	/**
	 * 是否启用日志记录
	 */
	private boolean enabled = true;

	/**
	 * 是否记录返回结果
	 */
	private boolean includeResult = true;

	/**
	 * 是否记录异常信息
	 */
	private boolean includeException = true;

	/**
	 * 是否记录请求头信息
	 */
	private boolean includeHeaders = false;

	public boolean isEnabled() {
		return enabled;
	}

	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}

	public boolean isIncludeResult() {
		return includeResult;
	}

	public void setIncludeResult(boolean includeResult) {
		this.includeResult = includeResult;
	}

	public boolean isIncludeException() {
		return includeException;
	}

	public void setIncludeException(boolean includeException) {
		this.includeException = includeException;
	}

	public boolean isIncludeHeaders() {
		return includeHeaders;
	}

	public void setIncludeHeaders(boolean includeHeaders) {
		this.includeHeaders = includeHeaders;
	}
}